<script setup>
defineProps(['b', 'c', 'd', 'x', 'y', 'updateA'])
</script>
<template>
  <div class="myson">
    <h3>我是孙组件</h3>
    <h4>孙子收到了爷爷传过来的数据:{{ b }},{{ c }},{{ d }},{{ x }},{{ y }}</h4>
    <el-button type="primary" @click="updateA(1)">点我将爷爷那儿的a+1</el-button>
  </div>
</template>
<style scoped>
.myson {
  background-color: #75166a;
  padding: 10px;
  border: 1px solid rgb(176, 31, 123)
}
</style>